package org.jeecg.modules.order.api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.modules.order.api.fallback.OrderMainFallback;
import org.jeecg.modules.order.entity.OrderMainEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "jeecg-order", fallbackFactory = OrderMainFallback.class)
public interface OrderMainApi {

    /**
     * order hello 微服务接口
     * @param
     * @return
     */
    @GetMapping(value = "/order/hello")
    String callHello();

    @ApiOperation(value = "getOrder", notes = "getOrder")
    @GetMapping(value = "/get")
    OrderMainEntity getOrder() ;
}
